package it.nexsoft.dyn.compiler;

public class CompilationException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	public CompilationException() {

	}

	public CompilationException(String message) {
		super(message);
	}

	public CompilationException(Throwable throwable) {
		super(throwable);
	}

	public CompilationException(String message, Throwable throwable) {
		super(message, throwable);
	}

	String javaFile;
	int sourceLineNumber;
	int sourceStart;
	int sourceEnd;
	int problemId;
		
	public CompilationException(String javaFile, String message, int problemId, int sourceLineNumber, int sourceStart, int sourceEnd) {
		super(message);
		this.sourceLineNumber = sourceLineNumber;
		this.sourceStart = sourceStart;
		this.sourceEnd = sourceEnd;
		this.problemId = problemId;
	}
}
